package com.linx.park.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.linx.common.excel.annotation.ExcelDictFormat;
import com.linx.common.excel.convert.ExcelDictConvert;
import com.linx.park.domain.ParkPlace;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 园区区域视图对象 park_place
 *
 * @author 泽智科技
 * @date 2024-10-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ParkPlace.class)
public class ParkPlaceExcelTempVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */

    private Long parkPlaceId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 园区id
     */
    private Long parkInfoId;

    /**
     * 父级id（0为根节点）
     */
//    @ExcelProperty(value = "父级id", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=为根节点")
    private Long pid;

    /**
     * 区域名称
     */
    @ExcelProperty(value = "名称")
    private String placeName;

    /**
     * 类型（1：园区楼栋；2：园区楼栋区域；3：楼栋区域楼层，4：楼层房间；）
     */
//    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
//    @ExcelDictFormat(readConverterExp = "1=：园区楼栋；2：园区楼栋区域；3：楼栋区域楼层，4：楼层房间；")
    private Long type;



    /**
     * 园区code
     */
    @ExcelProperty(value = "编码")
    private String parkInfoCode;

    /**
     * 楼栋id
     */
    private Long parkBuildingId;

    /**
     * 楼栋名称
     */
    private String parkBuildingName;

    @ExcelProperty(value = "楼栋编码")
    private String parkBuildingCode;

    /**
     * 楼栋区域id
     */
    private Long parkBuildingAreaId;

    /**
     * 楼栋区域名称
     */
    private String parkBuildingAreaName;

    @ExcelProperty(value = "楼栋区域编码")
    private String parkBuildingAreaCode;

    /**
     * 楼栋区域楼层id
     */
    private Long parkBuildingFloorId;

    /**
     * 楼栋区域楼层名称
     */
    private String parkBuildingFloorName;


    @ExcelProperty(value = "楼栋区域楼层编码")
    private String parkBuildingFloorCode;

    /**
     * 楼栋房间id
     */
    private Long parkBuildingRoomId;

    /**
     * l楼栋房间名称
     */
    private String parkBuildingRoomName;

    /**
     * 园区名称
     */
//    @ExcelProperty(value = "园区名称")
    private String parkInfoName;
    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private String delFlag;

    private String tenantId;




    @ExcelProperty(value = "楼栋房间编码")
    private String parkBuildingRoomCode;

    private String roomCode;

    @ExcelProperty(value = "经度")
    private String longitude;

    @ExcelProperty(value = "纬度")
    private String latitude;

    private String parkPlaceCode;
    private String path;

    @ExcelProperty(value = "空间级别")
    private Integer grade;
}
